import { h } from "vue";
import { ElMessageBox } from "element-plus";
import CodeResource from "./CodeResource.vue";
export default function openCodeDialog(projectName: string) {
  //2.打开弹框
  ElMessageBox({
    customStyle: {
      //默认样式
      width: "60%",
      maxWidth: "100%"
    },
    title: "查看源码",
    message: () => {
      return h(CodeResource, {
        projectName: projectName
      });
    },
    showConfirmButton: false //不显示确定按钮
  });
}
